package com.jcl.recruit.log.model;

import com.jcl.core.utils.DateUtils;

import java.util.Date;

public class ConsoleResumeLog {
    private Integer id;
    private Integer resumeId;
    private String resumeType;
    private Integer category;

    private String name;
    private String sex;
    private Integer age = 0;
    private Date birthday;
    private String education;
    private String positionName;

    private String corpCode;
    private String addUser;
    private Integer userId;

    private String sourceSub;
    private Date updateDate;
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getResumeId() {
        return resumeId;
    }

    public void setResumeId(Integer resumeId) {
        this.resumeId = resumeId;
    }

    public String getResumeType() {
        return resumeType;
    }

    public void setResumeType(String resumeType) {
        this.resumeType = resumeType;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        if(null != birthday){
            age = DateUtils.formatAge(birthday);
        }
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public String getCorpCode() {
        return corpCode;
    }

    public void setCorpCode(String corpCode) {
        this.corpCode = corpCode;
    }

    public String getAddUser() {
        return addUser;
    }

    public void setAddUser(String addUser) {
        this.addUser = addUser;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getSourceSub() {
        return sourceSub;
    }

    public void setSourceSub(String sourceSub) {
        this.sourceSub = sourceSub;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getBirthdayTime() {
        if(null != birthday){
            return birthday.getTime();
        }
        return 0L;
    }

    public Long getCreateTimestamp() {
        if(null != createTime){
            return createTime.getTime();
        }
        return 0L;
    }

    public Long getUpdateDateTime() {
        if(null != updateDate){
            return updateDate.getTime();
        }
        return 0L;
    }
}